package com.scf.loanmanage.service.ServiceImp;

import com.scf.loanmanage.dao.RepaymentRegisteredMapper;
import com.scf.loanmanage.entity.RepaymentRegistered;
import com.scf.loanmanage.service.RepaymentRegisteredService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@Service
public class RepaymentRegisteredImpl implements RepaymentRegisteredService {
    @Resource
    RepaymentRegisteredMapper repaymentRegisteredMapper;


    @Override
    public List<RepaymentRegistered> selectAll(Integer reid, Integer pageIndex, Integer pageSize) {
        return repaymentRegisteredMapper.selectAll(reid, pageIndex, pageSize);
    }

    @Override
    public void insertByreid(Integer regid, Date repaymentdate, Date actualrepaymentdate, Double shouldtotal, Double shouldprincipal, Double overdue, Integer rxpectedpenaltyrate, Double repaymentstatus, String state, Integer reid) {

    }


    @Override
    public void updateByregid(Integer regid) {

    }

    @Override
    public Integer selectcount() {
        return repaymentRegisteredMapper.selectcount();
    }

    @Override
    public Double selectReidzongjine(Integer reid) {
        return repaymentRegisteredMapper.selectReidzongjine(reid);
    }

    @Override
    public Double selectReidzonglixi(Integer reid) {
        return repaymentRegisteredMapper.selectReidzonglixi(reid);
    }
}
